package ws.jdbc.concurrent.test.tasks;

import ws.jdbc.concurrent.eresultset.EResultSet;
import ws.jdbc.concurrent.eresultset.ICursor;
import ws.jdbc.concurrent.exception.JdbcConcurrentException;

/**
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public abstract class EResultSetRunnable implements Runnable {

  protected static EResultSet eRs;
  protected final ICursor cursor;
  protected int num = 1;
  protected String str1 = "ers1", str2 = "ers2";
  protected float decimal = 99.9f;

  public EResultSetRunnable() throws JdbcConcurrentException {
    cursor = eRs.createCursor();
  }

  public static void seteRs(EResultSet eRs) {
    EResultSetRunnable.eRs = eRs;
  }
}
